#include "category.h"

Category::Category(QObject *parent) :
    QObject(parent), mId(-1), mName(""), mColor(255,255,255)
{
}

Category::Category(QString name, int id, QColor color, QObject *parent) :
    QObject(parent), mId(id), mName(name), mColor(color)
{
}

void Category::setId(int id)
{
    mId = id;
}

int Category::getId()
{
    return mId;
}

void Category::setName(QString name)
{
    mName = name;
}

QString Category::getName()
{
    return mName;
}

void Category::setColor(QColor color)
{
    mColor = color;
}

QColor Category::getColor()
{
    return mColor;
}
